﻿function details(Id) {
    window.open("/manage/employ/details/" + Id, "detailsWin", "Width=820,Height=800");
}
function GD(Id) {
    var _o = $("#list_" + Id);
    _o.css({ "background": "green" });

    $.post("/manage/employ/submit/" + Id, function (json) {
        if (json.result = "SUCCESS") {

            _o.animate("height", 200, "", function () {
                $(this).remove();
            })
        }
    })
}

function del(Id) {
    var _o = $("#list_" + Id);
    _o.css({ "background": "red" });

    $.post("/manage/employ/del/" + Id, function (json) {
        if (json.result = "SUCCESS") {

            _o.animate("height", 200, "", function () {
                $(this).remove();
            })
        }
    })
}
delBack
function delBack(Id) {
    var _o = $("#list_" + Id);
    _o.css({ "background": "yellow" });

    $.post("/manage/employ/delBack/" + Id, function (json) {
        if (json.result = "SUCCESS") {

            _o.animate("height", 200, "", function () {
                $(this).remove();
            })
        }
    })
}
function trueDel(Id) {
    var _o = $("#list_" + Id);
    _o.css({ "background": "red" });

    $.post("/manage/employ/del/" + Id, {TrueDel:true}, function (json) {
        if (json.result = "SUCCESS") {

            _o.animate("height", 200, "", function () {
                $(this).remove();
            })
        }
    })
}